-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[local_auth] Adopt structured errors and remove useErrorDialogs - platform implementations #10147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[local_auth] Adopt structured errors and remove useErrorDialogs - platform implementations #10147
Conversation
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This is just #9981 with the changes outside of the platform implementation packages reverted, for separate landing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request refactors the error handling across Android, Darwin, and Windows platforms to use a new structured LocalAuthException
, and removes the deprecated useErrorDialogs
option. The changes are comprehensive and well-aligned with the goal of modernizing the error reporting. I've identified a critical compilation issue in the Dart implementation for Darwin and provided a suggested fix. Otherwise, the platform-specific implementations and their corresponding tests are well-executed.
Platform implementation portion of #9981
LocalAuthException
class for structured errors.AuthenticationOptions.useErrorDialogs
Part of:
local_auth
plugin flutter#113687useErrorDialogs
flutter#175125Pre-Review Checklist
[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///
).Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2 ↩3